import service from '@/utils/request'

export function getList(params) {
  return service({
    url: '/checkitem/list',
    method: 'get',
    params
  })
}
export function getForm(id) {
  return service({
    url: '/checkitem/queryById?checkId='+id,
    method: 'get'
  })
}


export function save(params) {
  return service({
    url: '/checkitem/save',
    method: 'post',
    params
  })
}


export function update(params) {
  return service({
    url: '/checkitem/update',
    method: 'post',
    params
  })
}
export function deleteById(id) {
  return service({
    url: '/checkitem/deleteById?checkId='+id,
    method: 'get',
  })
}
